package com.dingreading.cloud.admin.service;

import com.dingreading.cloud.admin.entity.StoreProducts;
import com.dingreading.cloud.common.util.PageUtil;
import com.mybatisflex.core.paginate.Page;
import com.mybatisflex.core.service.IService;

/**
 * 服务层。
 *
 * @author Administrator
 * @since 2023-11-22
 */
public interface StoreProductsService extends IService<StoreProducts> {

    Page<StoreProducts> pageList(PageUtil pageUtil, String keyword, Integer source, Integer enabled);

    boolean updateEnabled(String uid, Integer enabled, String staffUid, String staffName);

    int dropBean(String uid);

    boolean haveName(String uid, String productName);

    StoreProducts getByUid(String uid);

    int getMaxOrderNum();

    StoreProducts getGtShowOrder(Integer orderNum);

    StoreProducts getLtShowOrder(Integer orderNum);

    /**
     * 设置序号
     */
    boolean updateOrderNum(String uid, Integer orderNum, String staffUid, String staffName);


}
